package com.pm.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pm.business.mapper.PersonCertificateMapper;
import com.pm.business.domain.PersonCertificate;
import com.pm.business.service.IPersonCertificateService;

/**
 * 证书管理Service业务层处理
 * 
 * @author zxl
 * @date 2022-05-06
 */
@Service
public class PersonCertificateServiceImpl implements IPersonCertificateService 
{
    @Autowired
    private PersonCertificateMapper personCertificateMapper;

    /**
     * 查询证书管理
     * 
     * @param certificateId 证书管理主键
     * @return 证书管理
     */
    @Override
    public PersonCertificate selectPersonCertificateByCertificateId(Long certificateId)
    {
        return personCertificateMapper.selectPersonCertificateByCertificateId(certificateId);
    }

    /**
     * 查询证书管理列表
     * 
     * @param personCertificate 证书管理
     * @return 证书管理
     */
    @Override
    public List<PersonCertificate> selectPersonCertificateList(PersonCertificate personCertificate)
    {
        return personCertificateMapper.selectPersonCertificateList(personCertificate);
    }

    /**
     * 新增证书管理
     * 
     * @param personCertificate 证书管理
     * @return 结果
     */
    @Override
    public int insertPersonCertificate(PersonCertificate personCertificate)
    {
        return personCertificateMapper.insertPersonCertificate(personCertificate);
    }

    /**
     * 修改证书管理
     * 
     * @param personCertificate 证书管理
     * @return 结果
     */
    @Override
    public int updatePersonCertificate(PersonCertificate personCertificate)
    {
        return personCertificateMapper.updatePersonCertificate(personCertificate);
    }

    /**
     * 批量删除证书管理
     * 
     * @param certificateIds 需要删除的证书管理主键
     * @return 结果
     */
    @Override
    public int deletePersonCertificateByCertificateIds(Long[] certificateIds)
    {
        return personCertificateMapper.deletePersonCertificateByCertificateIds(certificateIds);
    }

    /**
     * 删除证书管理信息
     * 
     * @param certificateId 证书管理主键
     * @return 结果
     */
    @Override
    public int deletePersonCertificateByCertificateId(Long certificateId)
    {
        return personCertificateMapper.deletePersonCertificateByCertificateId(certificateId);
    }
}
